Scribble assignment#119
Open
radha-soni wants to merge 27 commits into
Open
Conversation
Store host participant id on room creation, include it in room snapshots, and label the host in the lobby participant list. Co-authored-by: Cursor <cursoragent@cursor.com>
Validate and normalize room codes on both server and client, return clearer 400/404 messages, and fix the frontend default API base URL so join requests reach the backend. Co-authored-by: Cursor <cursoragent@cursor.com>
Add ~2s lobby polling to refresh the room snapshot automatically and surface non-fatal refresh errors. Co-authored-by: Cursor <cursoragent@cursor.com>
Add backend start-game endpoint with host and 2-player gating, expose playing status via snapshots, and wire the lobby UI to enable starting only for the host once enough players have joined. Co-authored-by: Cursor <cursoragent@cursor.com>
Show clearer lobby status messaging and button labels for host vs guest and 2-player minimum. Co-authored-by: Cursor <cursoragent@cursor.com>
Require non-empty player names on create and join, trim whitespace before storing, and surface clear form validation feedback in the UI. Co-authored-by: Cursor <cursoragent@cursor.com>
Assign the host as drawer when the game starts, pick the secret word deterministically from room code, and return/show the word only for the drawer viewer while guessers receive no secret word field. Co-authored-by: Cursor <cursoragent@cursor.com>
Define Scenario 3 gameplay interaction acceptance criteria, edge cases, and manual verification steps for drawing, guess validation, history sync, and scoring. Co-authored-by: Cursor <cursoragent@cursor.com>
Define Scenario 3 backend and frontend implementation plan for canvas interactions, guess processing, shared polling sync, and scoring state. Co-authored-by: Cursor <cursoragent@cursor.com>
Add ordered backend-first Scenario 3 tasks with dependencies and two-tab manual checks for canvas sync, guess handling, and scoring. Co-authored-by: Cursor <cursoragent@cursor.com>
Add drawer-only canvas stroke storage and API endpoints, plus an interactive canvas UI that lets the drawer draw and clear while other players see synced strokes via polling. Co-authored-by: Cursor <cursoragent@cursor.com>
Add guess submission with trimmed non-empty validation, case-insensitive matching, drawer-only restrictions, and wire the game guess form to the backend endpoint. Co-authored-by: Cursor <cursoragent@cursor.com>
Render shared guess history from room snapshots on the game page so all players see submitted guesses update through existing polling sync. Co-authored-by: Cursor <cursoragent@cursor.com>
Track per-participant scores starting at zero, award 100 points on a player's first correct guess only, and render live scoreboard values from room snapshots. Co-authored-by: Cursor <cursoragent@cursor.com>
Define Scenario 4 acceptance criteria for shared results state, round-end behavior, host-only restart, and final two-tab validation checks. Co-authored-by: Cursor <cursoragent@cursor.com>
Plan Scenario 4 backend status transitions, results snapshot visibility, restart endpoint, and frontend results/restart UI behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
Add ordered Scenario 4 backend-first tasks with dependencies and manual checks for results display, restart flow, and final validation. Co-authored-by: Cursor <cursoragent@cursor.com>
Transition to a shared results state on the first correct guess, reveal the secret word to all viewers in snapshots, and render final scores and guess history in the results panel. Co-authored-by: Cursor <cursoragent@cursor.com>
Add host-only restart from results that resets round data while preserving participants, and navigate all clients back to the lobby when polling observes lobby status. Co-authored-by: Cursor <cursoragent@cursor.com>
Document what the starter provided, what was added across all four scenarios, key tradeoffs, and how AI-assisted work was reviewed against the spec. Co-authored-by: Cursor <cursoragent@cursor.com>
Create .specify/memory/constitution.md and four specs/NNN-* feature folders extracted from existing speckit artifacts so CI precheck passes. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Contributor